@extends('default.layouts.vice_head_foot')
@section('title')企业会员找回密码-{{ Site::get('webname') }} @endsection
@section('insert_css')
{{--添加样式表--}}
<link rel="stylesheet" href="{{asset('/default/css/index/vice_public.css')}}">
<link rel="stylesheet" href="{{asset('/default/css/index/web_content.css')}}">
@endsection
@section('content')
    {{--副页菜单模版--}}
     @include('default.layouts.index_web_content_mune')
    {{--内容区显示区--}}
    <div class="vicecontent">
        {{--阴影线--}}
        <div class="shadow_line"></div>
        <div class="content">
            {{--显示区--}}
            <div class="showContent">
                <div class="title"><h3>企业会员找回密码</h3></div>
                <div class="findPassword">
                    <div class="step1"></div>
                        <div class="form">
                            @if(!empty(session('status')))
                                <p id="globalError">{{session('status')}}</p>
                            @endif
                            <div class="switch" id="findPasswordType"><span class="@if(empty(old('username'))){{'active'}}@endif">手机找回</span><span class="@if(!empty(old('username'))){{'active'}}@endif">邮箱找回</span></div>
                            <form action="{{url('company/mobile_find')}}" name="mobileFind" id="mobileFind" class="@if(!empty(old('username'))){{'div_display'}}@endif" method="post" onsubmit="return false">
                                {{csrf_field()}}
                                <dl>
                                    <dt><input name="mobile" id="mobile" value="{{request('mobile')}}" type="text" class="inpText" placeholder="请输入手机号码" tip="请输入手机号码" ></dt>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt style="width: 182px;"><input name="mobCode" id="mobCode" type="text" class="inpText" style="width: 162px;"
                                                                     placeholder="请输入手机验证码" tip="请输入手机验证码" value="" /></dt>
                                    <dd style="width: 130px; margin-right: 0px; display: block">
                                        <input name="mobcode" id="mobcode" type="button" onclick="getMobileCode($(this),$('#mobile'),'{{captcha_src('code')}}','{{ url('common/ajax_code')}}','{{url('company/mobile_get_code')}}')" class="mobcode" value="点击获取验证码" />
                                    </dd>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><input id="sub" value="下一步" type="submit" class="sub"></dt>
                                </dl>
                            </form>

                            <form action="{{url('company/email_find')}}" name="emailFind" id="emailFind" class="@if(empty(old('username'))){{'div_display'}}@endif" method="post">
                                {{csrf_field()}}
                                <dl>
                                    <dt><input name="username" id="username" value="{{old('username')}}" type="text" class="inpText" placeholder="请输入用户名" tip="请输入用户名"></dt>
                                    <dd class="errinfo"></dd>
                                </dl>
                                <dl>
                                    <dt><input name="email" id="email" value="{{old('email')}}" type="text" class="inpText" placeholder="请输入邮箱" tip="请输入邮箱"></dt>
                                    <dd class="errinfo"></dd>
                                </dl>

                                <dl>
                                    <dt><input id="sub" value="下一步" type="submit" class="sub"></dt>
                                </dl>
                            </form>
                        </div>
                </div>
            </div>
        </div> {{--end 内容显示--}}
    </div>
    <div class="viceButtom"></div>
    @endsection
@section('insert_js')
    <script type="text/javascript" src="{{asset('/default/js/company/find_password.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.enplaceholder.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/mobile_code.js')}}"></script>
    <script type="text/javascript">
        var _token="{{csrf_token()}}";
    </script>
@endsection